import Vue from "vue";
import App from "@/App.vue";
import router from "@/router";
import store from "@/store";
import $http from "@/utils/axios"
import "@/styles/index.scss"; // global css
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import "normalize.css/normalize.css";
import * as filters from "./filters";

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$http = $http;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");